home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 45 / Amiga Format CD45 (1999-09)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-11].iso / -serious- / sound / tracknameswindow / copyjusttrackname.c < prev    next >
C/C++ Source or Header  |  1999-08-16  |  505b  |  40 lines

  1. /*
  2.     Copies the current trackname to the tracknamebuffer.
  3.  
  4.     Link with annomanno.o and /octacontrol.o
  5.  
  6.     Recommended shortcut: Alt+c
  7.  
  8.     Made by Kjetil S. Matheussen 9.3.99.
  9.  
  10.     e-mail: kjetilma@ifi.uio.no
  11.  
  12.     Address:
  13.     Kjetil S. Matheussen
  14.     5423 Sogn Studentby
  15.     0858 Oslo
  16.     Norway
  17. */
  18.  
  19.  
  20.  
  21. #include "tracknameswindow.h"
  22.  
  23. void main(void){
  24.     OCTABASE ob;
  25.  
  26.     UWORD currtrack;
  27.  
  28.     if((ob=getoctabase())==0) goto exit;
  29.  
  30.     currtrack=getcurrtrack(ob);
  31.  
  32.     settracknamedata2(ob,currtrack);
  33.     settracknamedata(ob,GETBUF);
  34.  
  35.  
  36. exit:
  37. }
  38.  
  39.  
  40.